import { BaseEntity } from "src/common/entity/BaseEntity";
import { Entity, Column } from "typeorm";

@Entity("user", { comment: "用户表" })
export class User extends BaseEntity {
  // 用户账号
  @Column({ comment: "用户账号" })
  account: string;

  // 用户手机号
  @Column({ comment: "用户手机号" })
  phone: number;

  // 用户昵称
  @Column({ comment: "用户昵称" })
  nickname: string;

  // 用户密码
  @Column({ select: false })
  password: string;

  // 用户邮箱
  @Column({ comment: "用户邮箱" })
  email: string;

  // 用户头像
  @Column({ comment: "用户头像" })
  avatar: string;
}
